package com.ac.controller;

import com.ac.common.ServerResponse;
import com.ac.service.IFolderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/folder")
public class FolderController {

    @Autowired
    private IFolderService iFolderService;

    /**
     *
     * @param pid
     * @return
     */
    @RequestMapping(value = "getList.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse getList(String pid){
        return iFolderService.getList(pid);
    }
}
